package doh.service;

import javax.ejb.*;
import java.util.*;
import doh.entity.*;
import doh.util.*;

@Remote
public interface Request {
    void addPlayer(
        String id,
        String password,
        int rating,
        int games,
        int wins,
        double wratio,
        double oratio,
        int rocks,
        int papers,
        int scissors);

    void dropPlayer(String id);

    List<Player> getPlayers();

    int getRating(String id);

    void adjust_stats(String p1, String p2, boolean winner, int adjustment, GameSessionDetails gsd);

    int calc_ELO_adjustment(int r1, int r2, boolean winner);

    void addGame(GameSessionDetails gsd);

    List<Game> getGames();

    List<Game> getHistory(String player);

    List<LadderEntry> getLadder();

    int matchPlayer(String player);

    Vector throwObject(String player, int obj, int gameID);
}
